Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Apply PySpark 4.3.0's numeric scalar-class checks after NumPy dtype inference. Distinct aliases such as
np.longlongor an eight-bytenp.longdoublenow raise PySpark's bareAssertionErrorwhen their class is rejected. Supported classes retain their literal types, and wider unsupported dtypes retain their structured errors. Update scalar and array regressions for platform-dependent aliases.Why are the changes needed?
SPARK-61102. Dtype-kind and width checks alone accept classes that official PySpark rejects, including longdouble on macOS arm64.
Does this PR introduce any user-facing change?
Yes. Scalar and array literals apply PySpark's class validation as well as dtype inference.
How was this patch tested?
The original full run's seeded-random failure remains recorded: the unchanged test failed identically in official Python and both saved Rust transports on two threads, then passed in all three on its default four-thread fixture. Earlier CPU-queue expirations executed no checks.
The full/cluster suites use official Python converters over this build's Rust raw transport; they do not establish native high-level API, native ReleaseSession or native artifact-upload parity. They lack per-child import attestation. Server logs retain deliberate negative-test diagnostics and shutdown races; direct successful shutdown was recorded without final descendant-process telemetry.
Clippy remains advisory exit 101. Linux and Windows were not run locally.
Was this patch authored or co-authored using generative AI tooling?
Generated-by: OpenAI Codex
This pull request and its description were written by OpenAI Codex.